//
//  ZBMoBanIteamCell.m
//  MoBan
//
//  Created by apple on 16/7/11.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMoBanIteamCell.h"
@interface ZBMoBanIteamCell()
@property(nonatomic,strong)UILabel *namelable;
@property(nonatomic,strong)UILabel *detailLable;
@property(nonatomic,strong)UIImageView *imageview;
@end
@implementation ZBMoBanIteamCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addUI];
    }
    return self;
}
-(void)addUI
{
    self.namelable = [[UILabel alloc]init];
    self.namelable.text = @"免费吃喝";
    [self addSubview:self.namelable];
    
    self.detailLable = [[UILabel alloc]init];
    self.detailLable.text = @"新用户专享";
    [self addSubview:self.detailLable];
    
    self.imageview = [[UIImageView alloc]init];
    self.imageview.image = [UIImage imageNamed:@"text.png"];
    [self addSubview:self.imageview];

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.namelable.frame = CGRectMake(10*Kscr, 5*Kscr, self.width/2, 20*Kscr);
    
    self.detailLable.frame = CGRectMake(10*Kscr,self.namelable.bottom+5*Kscr, self.width/2, 20*Kscr);
    
    self.imageview.frame = CGRectMake(self.width-60*Kscr, 10*Kscr, 40*Kscr, 40*Kscr);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
